<template>
	<image style="width: 100%;height: 100%;" :style="style" :src="type=='remote'?config.imgUrl+'/static/icon/' + src:src" :mode="mode"></image>
</template>

<script>
 import {
	mapMutations,
    mapState
  } from 'vuex'
  let app = {}
  // #ifdef MP-WEIXIN
  app = getApp({
    allowDefault: true
  }).$vm
  // #endif
  // #ifndef MP-WEIXIN
  app = getApp({
    allowDefault: true
  })
  // #endif
  let timer = null
  export default {
    name: 'em-header',
    props: {
		src:[String],
		mode:[String],
		type:{
			default:"remote",
			type:String
		},
		style:[String],
    },
    data() {
      return {}
    },
	computed: {
	 ...mapState([
	 	'config',
	  ]),
	},
    watch: {},
	created() {},
    methods: {}
  }
</script>

<style>
.camera-icon{
	padding: 60rpx;
	border-radius: 30rpx;
	font-size: 32px;
}
.camera-icon-shadow{
	border-radius: 30rpx;
	font-size: 32px;
	background-color: #953921;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	top: 0;
}

 .header {
    /* HBuilder X 3.2.12显示正常，但是在HBuilder X 3.2.9不加!important则header无法定位，不知道其他版本还有没有这样的，如果有，请自行加上!important即可 */
    position: absolute !important;
    top: 0;
    right: 0;
    left: 0;
    z-index: 101;
  }
  .tab-chat {
    /* HBuilder X 3.2.12显示正常，但是在HBuilder X 3.2.9不加!important则header无法定位，不知道其他版本还有没有这样的，如果有，请自行加上!important即可 */
    position: absolute !important;
    top: 0;
    right: 0;
    left: 0;
    z-index: 101;
  }
  .scroll-view {
    border-radius: 0 0 28px 28px;
    /* 这里的overflow会造成iOS H5切换tab header闪烁，开始会无法覆盖，然后才被覆盖 */
    /* overflow: hidden; */
    transition-property: background-color;
    transition-duration: 0.25s;
  }

  .scroller {
    /* 安卓上transition-property可真是不能乱设啊，又被坑了，设置了transition-property在安卓nvue上height就不管用了 */
    /* transition-property: background-color;
    transition-duration: 0.25s; */
  }

  .item-padding-top {
    width: 750rpx;
    height: 14px;
  }

  .item {
    flex-direction: row;
    justify-content: space-between;
    padding: 0px 18px 0px 18px;
	width: 100%;
  }

  .item-hover {
    background-color: #F5F5F5;
  }

  .item-left {
    flex-direction: row;
    align-items: center;
    flex: 1;
  }

  .item-checkbox-icon {
    font-size: 20px;
    color: #9093A2;
  }

  .item-image-wrap {
  }

  .item-image {
    width: 98rpx;
    height: 98rpx;
    border-radius: 12rpx;
    /* #ifndef APP-NVUE */
    display: block;
    /* #endif */
  }

  .item-info {
  }

  .item-title {
    line-height: 19.5px;
    font-size: 16px;
    font-weight: 700;
	lines:1;
	text-overflow: ellipsis;
  }

  .item-spec {
    margin-top: 4px;
    font-size: 15px;
    font-weight: 700;
    color: #808080;
  }

  .item-price {
    margin-top: 5rpx;
    font-size: 13px;
  }

  .item-right {
    height: 88px;
  }

  .footer {
    flex-direction: row;
    justify-content: center;
    padding: 28px 0;
  }

  .footer-btn {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 58px;
    padding: 0 28px;
    border-radius: 12px;
    /* background-color: #F76842; */
    /* 卧槽！！！！过分了啊，transition-property居然连justify-content: center;都能影响，绝了 */
    /* transition-property: background-color;
    transition-duration: 0.25s; */
  }

  .footer-submit-label {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
  }

  .footer-submit-amount {
    font-size: 14px;
    color: #FFFFFF;
  }

  .footer-remove-btn {
    /* 卧槽！！！！过分了啊，transition-property居然连justify-content: center;都能影响，绝了 */
    justify-content: center;
  }

  .footer-remove-label {
    font-size: 15px;
    font-weight: 700;
  }
</style>
